const express = require('express');
const app = express();
const port = 9999;

app.get('/jquery_server', (request, response) => {
    // 设置跨域，必须设置
    response.setHeader('Access-Control-Allow-Origin', '*');

    const data = {
        name: '李小侠',
        age: 23,
        city: '芜湖'
    }
    response.send(JSON.stringify(data));

})

app.listen(port, () => {
    console.log('监听端口号：' + port);
})